*!* File         : VFPDotNet.H
*!* Author       : Jijo Pappachan, jijopappachan@gmail.com
*!* Date         : 07/19/11 04:33:08 PM
*!* Copyright    : 
*!* Description  : Main Header file
*!* Revision Info: 1.0
*!* ================================================================================
#include Scintilla.H
#include WinEvents.H
#include WinConstants.H
#include MessageStrings.H
#include Classes\Registry.H
#include Classes\API_Menu.h

#include "scintilla301\scintilla\Include\vfp_Scintilla.h"
*-- Standard toolbar button
#define TOOL_STANDARD_NEW 			"TOOL_STANDARD_NEW"
#define TOOL_STANDARD_OPEN			"TOOL_STANDARD_OPEN"
#define TOOL_STANDARD_SAVE			"TOOL_STANDARD_SAVE"
#define TOOL_STANDARD_PRINT			"TOOL_STANDARD_PRINT"
#define TOOL_STANDARD_CUT			"TOOL_STANDARD_CUT"
#define TOOL_STANDARD_COPY			"TOOL_STANDARD_COPY"
#define TOOL_STANDARD_PASTE			"TOOL_STANDARD_PASTE"
#define TOOL_STANDARD_UNDO			"TOOL_STANDARD_UNDO"
#define TOOL_STANDARD_REDO			"TOOL_STANDARD_REDO"
#define TOOL_STANDARD_RUN			"TOOL_STANDARD_RUN"
#define TOOL_STANDARD_SOLEXPLR		"TOOL_STANDARD_SOLEXPLR"
#define TOOL_STANDARD_DOCVIEW		"TOOL_STANDARD_DOCVIEW"
#define TOOL_STANDARD_TOOLBOX		"TOOL_STANDARD_TOOLBOX"
#define TOOL_STANDARD_CLSBROWSR		"TOOL_STANDARD_CLSBROWSR"
#define TOOL_STANDARD_PROPERTIES	"TOOL_STANDARD_PROPERTIES"
#define TOOL_STANDARD_HELP			"TOOL_STANDARD_HELP"
#define TOOL_STANDARD_OBJBROWSR		"TOOL_STANDARD_OBJBROWSR"

*-- Layout toolbar button
#define TOOL_LAYOUT_ALL				"TOOL_LAYOUT_*"
#define TOOL_LAYOUT_LEFTS			"TOOL_LAYOUT_LEFTS"
#define TOOL_LAYOUT_CENTERS			"TOOL_LAYOUT_CENTERS"
#define TOOL_LAYOUT_TOPS			"TOOL_LAYOUT_TOPS"
#define TOOL_LAYOUT_RIGHTS			"TOOL_LAYOUT_RIGHTS"
#define TOOL_LAYOUT_BOTTOMS			"TOOL_LAYOUT_BOTTOMS"
#define TOOL_LAYOUT_MIDDLES			"TOOL_LAYOUT_MIDDLES"
#define TOOL_LAYOUT_VERTICALLY		"TOOL_LAYOUT_VERTICALLY"
#define TOOL_LAYOUT_HORIZONTALLY	"TOOL_LAYOUT_HORIZONTALLY"
#define TOOL_LAYOUT_WIDTHS			"TOOL_LAYOUT_WIDTHS"
#define TOOL_LAYOUT_HEIGHTS			"TOOL_LAYOUT_HEIGHTS"
#define TOOL_LAYOUT_SIZES			"TOOL_LAYOUT_SIZES"
#define TOOL_LAYOUT_BRINGFRONT		"TOOL_LAYOUT_BRINGFRONT"
#define TOOL_LAYOUT_SENDBACK		"TOOL_LAYOUT_SENDBACK"
#define TOOL_LAYOUT_TABORDERS		"TOOL_LAYOUT_TABORDERS"

*-- VFP Format menu ids
#define FORMAT_MAIN 				"M_FORMAT"
#define FORMAT_FONT					"M_FONT"
#define FORMAT_ENLARGEFONT			"M_ENLARGEFONT"
#define FORMAT_REDUCEFONT			"M_REDUCEFONT"
#define FORMAT_SINGLESPACE			"M_SINGLESPACE"
#define FORMAT_112SPACE				"M_112SPACE"
#define FORMAT_DOUBLESPACE			"M_DOUBLESPACE"
#define FORMAT_INDENT				"M_INDENT"
#define FORMAT_UNINDENT				"M_UNINDENT"
#define FORMAT_COMMENT				"M_COMMENT"
#define FORMAT_UNCOMMENT			"M_UNCOMMENT"
#define FORMAT_MAKEUPPERCASE		"M_MAKEUPPERCASE"
#define FORMAT_MAKELOWERCASE		"M_MAKELOWERCASE"
#define FORMAT_VIEWWHITESPACE		"M_VIEWWHITESPACE"
#define FORMAT_TOGGLEWORDWRAP		"M_TOGGLEWORDWRAP"

*-- Editor window flags (Foxtools.FLL)
#Define ED_SAVE_FORCED				 0
#Define ED_SAVE_DIALOG				 1
#Define ED_SAVE_AS					 2

#Define ED_SAVED	    			 0
#Define ED_DISCARD	   				-1
#Define ED_CANCEL	    			 1

#DEFINE ED_READONLY     			 0
#DEFINE ED_WRITEONLY    			 1
#DEFINE ED_READWRITE    			 2

*-- VFP registry keys
#DEFINE VFPOPT_OCXLIST				"Software\Microsoft\VisualFoxPro\9.0\Options\OLEList"
#DEFINE CLASS_IDKEY					"CLSID"
#DEFINE CLASS_PROGID				"ProgID"
#DEFINE CLASS_PROGIDNOVERS		    "VersionIndependentProgID"
#define CLASS_TOOLBOXBITMAP32		"ToolboxBitmap32"


#DEFINE META_PROPERIESLIST			"Properties_List"
#DEFINE OLEIVERB_PROPERTIES			-7

#DEFINE RES_INTERNAL_VARIABLE		1

#DEFINE RES_INTERNAL_NORMAL				0
#DEFINE RES_INTERNAL_PROTECTED			1
#DEFINE RES_INTERNAL_HIDDEN				2

#DEFINE RES_INTERNAL_METHOD				2
#DEFINE RES_INTERNAL_EVENT				5
#DEFINE RES_INTERNAL_PROPERTY			8


#DEFINE RES_INTERNAL_CHECKBOX			9
#DEFINE RES_INTERNAL_COLLECTION			10
#DEFINE RES_INTERNAL_COLUMN				11
#DEFINE RES_INTERNAL_COMBOBOX			12
#DEFINE RES_INTERNAL_COMMANDBUTTON		13
#DEFINE RES_INTERNAL_COMMANDGROUP		14
#DEFINE RES_INTERNAL_CONTAINER			15
#DEFINE RES_INTERNAL_CONTROL			16
#DEFINE RES_INTERNAL_CURSOR				17
#DEFINE RES_INTERNAL_CURSORADAPTER		18
#DEFINE RES_INTERNAL_CUSTOM				19
#DEFINE RES_INTERNAL_DATAENVIRONMENT	20
#DEFINE RES_INTERNAL_EDITBOX			21
#DEFINE RES_INTERNAL_EMPTY				22
#DEFINE RES_INTERNAL_EXCEPTION			23
#DEFINE RES_INTERNAL_FORM				24
#DEFINE RES_INTERNAL_FORMSET			25
#DEFINE RES_INTERNAL_GRID				26
#DEFINE RES_INTERNAL_HEADER				27
#DEFINE RES_INTERNAL_HYPERLINK			28
#DEFINE RES_INTERNAL_IMAGE				29
#DEFINE RES_INTERNAL_LABEL				30
#DEFINE RES_INTERNAL_LINE				31
#DEFINE RES_INTERNAL_LISTBOX			32
#DEFINE RES_INTERNAL_OLEBOUNDCONTROL	33
#DEFINE RES_INTERNAL_OLECONTROL			34
#DEFINE RES_INTERNAL_OPTIONBUTTON		35
#DEFINE RES_INTERNAL_OPTIONGROUP		36
#DEFINE RES_INTERNAL_PAGE				37
#DEFINE RES_INTERNAL_PAGEFRAME			38
#DEFINE RES_INTERNAL_POINTER			39
#DEFINE RES_INTERNAL_PROJECTHOOK		40
#DEFINE RES_INTERNAL_RELATION			41
#DEFINE RES_INTERNAL_REP				42
#DEFINE RES_INTERNAL_REPORTLISTENER		43
#DEFINE RES_INTERNAL_SEPARATOR			44
#DEFINE RES_INTERNAL_SESSION			45
#DEFINE RES_INTERNAL_SHAPE				46
#DEFINE RES_INTERNAL_SPINNER			47
#DEFINE RES_INTERNAL_TEXTBOX			48
#DEFINE RES_INTERNAL_TIMER				49
#DEFINE RES_INTERNAL_TOOLBAR			50
#DEFINE RES_INTERNAL_XMLADAPTER			51
#DEFINE RES_INTERNAL_XMLFIELD			52
#DEFINE RES_INTERNAL_XMLTABLE			53
#DEFINE RES_INTERNAL_DATATYPE			54
#DEFINE RES_INTERNAL_PARAMITEM			55

#DEFINE RES_INTERNAL_MAX				55


#DEFINE VFP_FOXCODE_TYPE_COM		   "O"
#DEFINE VFP_FOXCODE_TYPE_COMMAND	   "C"
#DEFINE VFP_FOXCODE_TYPE_XML		   "E"
#DEFINE VFP_FOXCODE_TYPE_FUNCTION	   "F"
#DEFINE VFP_FOXCODE_TYPE_SCRIPT		   "S"
#DEFINE VFP_FOXCODE_TYPE_TYPING		   "T"
#DEFINE VFP_FOXCODE_TYPE_USER		   "U"
#DEFINE VFP_FOXCODE_TYPE_VERSION	   "V"
#DEFINE VFP_FOXCODE_TYPE_SYSVARS	   "G"
#DEFINE VFP_FOXCODE_TYPE_PROPERTY	   "P"

#DEFINE NTICONTEXTTYPE_VARIABLE		   "V"
#DEFINE NTICONTEXTTYPE_ERROR		   "E"
#DEFINE NTICONTEXTTYPE_WARNING		   "W"

#DEFINE VFP_WINDOWCLASS_1			   "vfp994000003"
#DEFINE VFP_BASEDATATYPES			   " BOOLEAN BYTE CHARACTER CURRENCY DATE DATETIME DECIMAL DOUBLE INTEGER" + ;
										" LOGICAL LONG OBJECT NUMBER SHORT SINGLE STRING VARIANT VOID "
										
#DEFINE VFPDOTNETCONTROLID				"__vfpDotNetControlID_"
#DEFINE SCRIPTNAME_GETPROPVALUES		"PROPVALMENU"
#DEFINE VFPVALIDSYMBOLS					"!@#$%&*()_-=+\|}{[]';:,./?~" + ["]

*-- Style contants
#DEFINE EDI_FLAG_NORMAL					0
#DEFINE EDI_FLAG_KEYWRD					1
#DEFINE EDI_FLAG_COMENT					2
#DEFINE EDI_FLAG_STRING					3
#DEFINE EDI_FLAG_OPERTR					4
#DEFINE EDI_FLAG_REGION					5

#DEFINE MARGIN_LINENUMBER 				0

#DEFINE STYLE_ANNOTATIONW				6
#DEFINE STYLE_ANNOTATIONE				7

#DEFINE STYLE_DEFAULT          			32
#DEFINE STYLE_LINENUMBER	   			33
#DEFINE STYLE_BRACELIGHT	   			34
#DEFINE STYLE_BRACEBAD		   			35
#DEFINE STYLE_CONTROLCHAR      			36
#DEFINE STYLE_INDENTGUIDE	   			37
#DEFINE STYLE_CALLTIP	   	   			38 &&STYLE_DEFAULT &&38

#DEFINE EDI_INDIC_ERROR					8
#DEFINE EDI_INDIC_WARNG					9

#DEFINE REG_STT_KEYWRD     				"*REGION"
#DEFINE REG_END_KEYWRD     				"*ENDREGION"

#DEFINE ILIST_AUTOFILLUPS  				"([+-/*<>), " + CHR(13)
#DEFINE ILIST_TYPESEPCHAR  				"~"
